package com.buba.pojo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

//系统菜单表
@Data
public class SysFun {
    private Integer nodeId;
    private String displayName;
    private String nodeURL;
    private Integer displayOrder;
    private Integer parentNodeId;
    private List<SysFun> childList;

    public void addChild(SysFun sysFun){
        if (this.childList==null)
            this.childList = new ArrayList<>();
        childList.add(sysFun);
    }
}
